package net.lab1024.sa.admin.module.business.lcy.student.domain.form;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import java.time.LocalDate;
import lombok.Data;

/**
 * 学生基本信息 新建表单
 *
 * @Author yangz
 * @Date 2025-10-31 18:41:13
 * @Copyright yangz
 */

@Data
public class LcyStudentAddForm {

    @Schema(description = "学生姓名", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "学生姓名 不能为空")
    private String studentName;

    @Schema(description = "出生日期", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "出生日期 不能为空")
    private LocalDate birthDay;

    @Schema(description = "性别 M男 F女", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "性别 M男 F女 不能为空")
    private String sex;

    @Schema(description = "联系方式", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "联系方式 不能为空")
    private String phone;

    @Schema(description = "入校时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "入校时间 不能为空")
    private LocalDate inTime;

}